package com.bush.mall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;

import com.bush.mall.common.entity.Result;;
import com.bush.mall.order.entity.OrderEntity;

/**
 * 订单
 * @author RUN
 * @date 2022-11-29
 */
public interface OrderService extends IService<OrderEntity> {

    public static final String BEAN_ID = "mall.orderService";

    /**
     * 分页查询订单列表
     * @author RUN
     * @date 2022-11-29
     */
     Result queryForPage(Integer current,Integer size);


    /**
     * 创建订单表单对象
     * @author RUN
     * @date 2022-11-29
     */
     Result saveOrder(OrderEntity order);


    /**
     * 修改订单表单对象
     * @author RUN
     * @date 2022-11-29
     */
     Result updateOrder(OrderEntity order);

    /**
     * 删除指定ID的订单
     * @author RUN
     * @date 2022-11-29
     */
     Result deleteOrder(Long id);

}

